package com.example.lt.entity.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 小涛Tao
 * @Date: 2024/07/29/19:50
 * version 1.0 注释：
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Follow implements Serializable {

    private static final long serialVersionUID = 1L;

    // 关注记录id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 粉丝id，关注者
    private Long userId;

    // 关注id，被关注者
    private Long followId;

    // 记录插入时间
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

}
